﻿using UnityEngine;
using System.Collections;

public class TienDatController : MonoBehaviour {
	private Animator animator;
	private bool k;
	// Use this for initialization
	void Start () {
		animator = gameObject.GetComponent<Animator> ();
	}
	
	// Update is called once per frame
	void Update () {
		animator.SetBool ("isChoPhepDat", XocDiaController.chophepdat);
		if (XocDiaController.chophepdat == true) {
						k = false;
				} else
						k = true;
		animator.SetBool ("isKChoDat", k);

	}
}
